package com.group.admin.controller;

import java.util.Arrays;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.group.admin.entity.ShopCheckEntity;
import com.group.admin.service.ShopCheckService;
import com.group.common.utils.PageUtils;
import com.group.common.utils.R;

import javax.servlet.http.HttpSession;


/**
 * 用户签到表
 *
 * @author gxx
 * @email hongyezhaofang.com
 * @date 2021-11-15 11:28:01
 */
@RestController
@RequestMapping("admin/shopcheck")
public class ShopCheckController {
    @Autowired
    private ShopCheckService shopCheckService;

    /**
     * 用户签到
     * @param session 获取签到用户id
     * @author 郭晓旭
     */
    @RequestMapping("check")
    public R check(HttpSession session){

        Object userid1 = session.getAttribute("loginUser");
        R r =shopCheckService.check(userid1);
        return r;
    }

}
